<template>
    <view class="container">
        <text>用户名:</text><input v-model="username" type="text" placeholder="用户名" disabled>
        <text>密码:</text><input v-model="password" type="text" placeholder="密码" disabled>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                username: '',
                password: ''
            };
        },
        created() {
            let route = this.$route;
            if (route.query && route.query.item) {
                let userinfo = JSON.parse(decodeURIComponent(route.query.item));
                this.username = userinfo.username;
                this.password = userinfo.password;
            }
        }
    }
</script>
<style>
</style>